<html>
<head>
<title> i18n.html </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<style type="text/css">
  @import "../dojo/dojo-release-1.0.0/dojox/grid/_grid/tundraGrid.css";
  
  @import "../dojo/dojo-release-1.0.0/dijit/themes/tundra/tundra.css";
  
  @import "../dojo/dojo-release-1.0.0/dojo/resources/dojo.css";
  
  /*    body
  {
  font-size:0.9em;
  font-family:Geneva,Arial,Helvetica,sans-serif;            
  }
  .heading {
  font-weight: bold;
  padding-bottom: 0.25em;
  }
  
  #grid {
  border: 1px solid #333;
  width: 35em;
  height: 30em;
  }*/
</style>
<script type="text/javascript"
        src="../dojo/dojo-release-1.0.0/dojo/dojo.js"
        djConfig="isDebug:true, parseOnLoad: true,locale: 'zh-cn', extraLocale: ['zh-TW', 'fr']">
</script>
<script type="text/javascript">
  dojo.require("dojo.parser");
  dojo.require("dojo.i18n");
  dojo.registerModulePath("my.app", "../../../js");
</script>


</head>
<body>
  
  <a href="blah" i18n="area"></a>
  
</body>

<script type="text/javascript">
  dojo.requireLocalization("my.app", "demo");
  var text = dojo.i18n.getLocalization("my.app", "demo");
  alert( text['area']);
  dojo.query("[i18n]").forEach(function(node){
  var a = node.getAttribute("i18n");
  alert (a);
  node.innerHTML = text[a];
  });
  
</script>
</html>
